﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Text;

namespace Utility
{
    public class SQLServerParameterList : DbParameterList<SqlParameter>
    {
        public SqlParameter Add(string parameterName, SqlDbType dbType)
        {
            return Add(new SqlParameter(parameterName, dbType));
        }

        public SqlParameter Add(string parameterName, SqlDbType dbType, int size)
        {
            return Add(new SqlParameter(parameterName, dbType, size));
        }

        public SqlParameter Add(string parameterName, SqlDbType dbType, int size, string sourceColumn)
        {
            return Add(new SqlParameter(parameterName, dbType, size, sourceColumn));
        }

        public SqlParameter AddWithValue(string parameterName, object value, SqlDbType dbType)
        {
            return Add(new SqlParameter(parameterName, dbType) { Value = value });
        }
    }
}